package Mangos::DB::Mangos::AchievementReward;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'achievement_reward',

    columns => 
    [
        entry   => { type => 'integer', not_null => 1 },
        title_A => { type => 'integer', default => '0', not_null => 1 },
        title_H => { type => 'integer', default => '0', not_null => 1 },
        item    => { type => 'integer', default => '0', not_null => 1 },
        sender  => { type => 'integer', default => '0', not_null => 1 },
        subject => { type => 'varchar', length => 255 },
        text    => { type => 'text', length => 65535 },
    ],

    primary_key_columns => [ 'entry' ],
);

1;

package Mangos::DB::Mangos::AchievementReward::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::AchievementReward' }

__PACKAGE__->make_manager_methods('achievement_reward');

1;
